# -*- coding: utf-8 -*-
# @Time    : 2024/11/7  17:11
# @Author  : Nabby
# @FileName: sys_config.py
# @Desc    :




RELEASE_VERSION = '1.1'
FULL_VERSION = '1.1.0.0007'

"""
WEB SETTINT
"""
WEB_IP = '0.0.0.0'
WEB_PORT = '6173'
# 字符串编码格式
STRING_CODE = 'utf-8'
# 加密方式名
ENCRYPTION_SHA1 = 'sha1'
# token过期时间配置(默认一周 604800/测试的时候5分钟)
TOKEN_EXPIRE = 604800

"""
系统新增登记使用多个基本信息表单的固定编码
"""
BASE_INFO_CODE = 'FORMXXdzcf0y1CsSmiqTbr1655088868'

"""
MongoDB-Setting
"""
# 开发时使用的单节点配置

#
# MYSQL_HOST = "192.168.10.22"
# MYSQL_PORT = 3306
# DIALECT = "mysql"
# DRIVER = "pymysql"
# USERNAME = "root"
# PASSWORD = "chsX?#123"
# DATABASE = "virtual_hospital"
# DB_URI = f"{DIALECT}+{DRIVER}://{USERNAME}:{PASSWORD}@{MYSQL_HOST}:{MYSQL_PORT}/{DATABASE}?charset=utf8"
#
# SQLALCHEMY_DATABASE_URI = DB_URI
# SQLALCHEMY_POOL_SIZE = 50
# SQLALCHEMY_POOL_TIMEOUT = 25  # 获取链接的超时阈值（正常业务不会超过这个时间）
# SQLALCHEMY_POOL_RECYCLE = 7200  # 与数据库连接的保持时间（一般小于Mysql默认的28800就没问题）
# SQLALCHEMY_MAX_OVERFLOW = 0
# SQLALCHEMY_TRACK_MODIFICATIONS = False
#
# MYSQL_CHARSET = "utf8mb4"
# MYSQL_COLLATE = "utf8mb4_general_ci"
#
# MaxPoolSize = 50
# WaitQueueMultiple = 10
# waitQueueTimeoutMS = 100

"""
db-select-habit
"""

USER_SALT_LENGTH = 4
PAGE_LIMIT = 10
DEFAULT_PAGE = 1

"""
Flask-Setting
"""
DEBUG = False
SECRET_KEY = '\xca\x0c\x86\x04\x98@\x02b\x1b7\x8c\x88]\x1b\xd7"+\xe6px@\xc3#\\'  # 初始化session 会话  需要配置key
THREAD_POOL_SIZE = 5
# 接口文件上传大小限制
MAX_CONTENT_LENGTH = 100 * 1024 * 1024
